package com.example.spring.multi.aop.annotation;



import com.example.spring.multi.aop.annotation.enums.BusinessType;
import com.example.spring.multi.aop.annotation.enums.OperatorType;

import java.lang.annotation.*;

/**
 * 操作日志
 * @author xiaohan.yuan
 * */
@Target({ ElementType.PARAMETER, ElementType.METHOD })
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface Log {

    /**
     * 模块
     * */
    public String model() default "";

    /**
     * 操作类型
     * */
    public BusinessType  businessType() default BusinessType.OTHER;

    /*
    * 操作人类别
    * */
    public OperatorType operatorType() default OperatorType.OTHER;

    /*
    * 是否保存请求参数
    * */
    public boolean isSaveParam() default true;

}
